package sm.upgrade.converter;

import java.util.Map;

public class DefaultToNeverConverter extends LogicalToAlwaysNeverConverter {
	@Override
	public Object convert(Object value, Map<String, Object> owner) {
		String name = (String) owner.get("name");
		Object newValue = value;
		if ("DEFAULT".equalsIgnoreCase(name)) {
			newValue = "never";
		} else {
			newValue = super.convert(value, owner);
		}
		return newValue;
	}
}
